package org.example.leetcpde;

import java.util.Arrays;

public interface IArray {

    default int[] parse(String text) {
        String substring = text.substring(1, text.length() - 1);
        String[] split = substring.split(",");
        return Arrays.stream(split).mapToInt(Integer::valueOf).toArray();
    }

}
